import 'package:flutter/cupertino.dart';

import '../utils/screen_util_x.dart';

class ScreenTypeWidget extends StatelessWidget {
  const ScreenTypeWidget({
    super.key,
    required this.landLayout,
    required this.portLayout,
  });

  final Widget landLayout;
  final Widget portLayout;

  @override
  Widget build(BuildContext context) {
    if (ScreenUtilX.isLandscape(context)) {
      return landLayout;
    } else {
      return portLayout;
    }
  }
}
